package org.tom.org.domain;

import lombok.Data;
import org.tom.basic.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {

    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Employee manager; // 用对象传值
    private Long parent_id;
    private Department parent; // 用对象传值
    private List<Department> children = new ArrayList<>(); // 用来接收下级部门的
}
